<?php
//include_once($_SERVER['DOCUMENT_ROOT']."/RecJP/class/Model/Model.userMemory.php");
include_once($_SERVER['DOCUMENT_ROOT']."/RecJP/inc/usedb_inc.php");

class DAL_lessonOperator
{
	public static function GetLessonList()
        {
            $sql="SELECT distinct lesson,bookid FROM danci";
            $LessonResult= getSqliteHelper()->Query($sql,null);
            return $LessonResult;
        }
        
        public static function GetBookName($bookid)
        {   $p=array();
            $p[":bookid"] = $bookid;
            $sql="SELECT* FROM book where bookid=:bookid";
            $Result= getSqliteHelper()->Query($sql,$p);
            return $Result[0]["book"];
        }
}
?>
